var mongoose = require('mongoose');

const Schema = mongoose.Schema;

const historySchema = new Schema({
    financeId: String,
    userId: String,
    decrease: Number,
    remain: Number
}, { timestamps: { createAt: 'created' }, versionKey: false })

const History = mongoose.model('history', historySchema);

module.exports = History